<!DOCTYPE HTML>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <title>Spring Boot Thymeleaf Hello World Example</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <link rel="stylesheet" type="text/css" href="/webjars/bootstrap/3.3.7/css/bootstrap.min.css" />
    <link rel="stylesheet" th:href="@{/css/main.css}"  href="/static/css/main.css" />

</head>
<body>

<nav class="navbar navbar-inverse">
    <div class="container">
        <div class="navbar-header">
            <a class="navbar-brand" href="#">Spring Boot</a>
        </div>
        <div id="navbar" class="collapse navbar-collapse">
            <ul class="nav navbar-nav">
                <li class="active"><a href="#">Home</a></li>
                <li><a href="#about">About</a></li>
            </ul>
        </div>
    </div>
</nav>

<div class="container">

    <div class="starter-template">
        <h1>Spring Boot Web Thymeleaf Example</h1>
        <h2>访问形式：<a href="localhost:2017/index/12/welcome" target="_blank">loacalhost:2017/index/{id}/welcome.html</a></h2>
        <h2>
            <!--/*@thymesVar id="message" type="com.hcj.admin.controller.WelcomeController" */-->
            <span th:text="'Message: '+ ${message}">显示消息</span>
            <span th:style="'color:blue;'">服务器上显示蓝色，本地显示黑色</span>
            <br/>
            <span th:text="|问候: ${hello}|"></span>
            <br/>
            <span th:text="|当前时间: ${#dates.createToday().toLocaleString()}|"></span>
        </h2>
        <h3><span th:text="|您访问的地址为: ${url}|"></span></h3>
        <h4>11111</h4>
    </div>

</div>
<!-- /.container -->

<script type="text/javascript" th:src="@{/webjars/jquery/2.1.1/jquery.min.js}"
        src="/webjars/jquery/2.1.1/jquery.min.js"></script>
<script type="text/javascript" th:src="@{/webjars/bootstrap/3.3.7/js/bootstrap.min.js}"
        src="/webjars/bootstrap/3.3.7/js/bootstrap.min.js"></script>

</body>
</html>